package com.example.configuration;

import com.example.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2025-04-14
 * Time: 09:10
 */
@Configuration
public class HelloConfig {
    //@Primary
    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan",15,"man");
    }
    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("lisi",12,"man");
    }
}
